#!/bin/env python
#-*- coding:utf-8 -*-

passwd = "test"
logoutFlag = False

for i in range(3):
	inputPasswd = raw_input("Please input the passwd:").strip()
	if len(inputPasswd) == 0:
		continue
	if inputPasswd == passwd:
		while True:
			print "Welcom to login:"
			usersChoice = raw_input('''
				1.Run a cmd
				2.Send a file
				3.Exit to the level
				4.Exit to the system
				''').strip()
			if usersChoice == 1:
				print "Run a cmd!"
			if usersChoice == 2:
				print "Send a file!"
			if usersChoice == 3:
				print "Exit to the level!"
				break
			if usersChoice == 4:
				logoutFlag == True
				break
	if logoutFlag == True:
		print "Exit to the system!"
		break
#print "你已连续4次输错密码,程序即将退出!"
print "Sorry,the Error of 4 to you,Now the program is brak!"